<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<form id="pagerForm" method="post" action="roommanage">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="<s:property value="pm.numPerPage"/>" />
	<input type="hidden" name="roomname" value="<s:property value="roomname"/>" />
</form>

<form onsubmit="return navTabSearch(this);" action="SearchRoom_List" method="post">
<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent"> 
			<tr>
				<td align="left">
					房间号:<s:textfield theme="simple" name="searchRoomID" ></s:textfield>
				</td>
				<td align="left">
					实验室名称:<s:textfield theme="simple" name="searchRoomName" ></s:textfield>
				</td>			
				<td align="left">
					实验室负责人:<s:textfield theme="simple" name="searchLeader" ></s:textfield>
				</td>
				
				<td>
				<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
				</td>
			</tr>
		</table>
		
	</div>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			
			<li><a class="add" href="Room_Add" target="navTab" rel="Room_Add"><span>新增</span></a></li>
			<li><a class="edit" id="Room_Modify" href="Room_Modify?room_id={room_id}" target="navTab" rel="Room_Modify"><span>修改</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="Room_BatchDelete" class="delete"><span>删除</span></a></li>
		
		</ul>
	</div>
		
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th align="center">房间号</th>
				<th align="center">实验室名称</th>
				<th align="center">实验室成员</th>
				<th align="center">实验室负责人</th>
				<th align="center">负责人电话</th>
				<th align="center">操作人员</th>
				
			</tr>
		</thead>
		<tbody> 
			<s:iterator value="pm.list" status="index"  var="cp">
				<tr target="room_id" rel="<s:property value="roomid"/>" modifyTagId="Room_Modify"> 
					<td align="center"><input name="ids" value="<s:property value="roomid"/>" type="checkbox"></td>
					<td align="center"> <s:property value="roomid"/></td>
					<td align="center"><s:property value="roomname"/></td>
					<td align="center"><s:property value="member"/></td>
					<td align="center"><s:property value="roomleader"/></td>
					<td align="center"><s:property value="leaderphone"/></td>
					<td align="center"><s:property value="operator"/></td>  	
				</tr>
			</s:iterator>	

			
		</tbody>
	</table>
	
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option <s:if test='%{numPerPage=="20"}'>selected="selected"</s:if> value="20">20</option>
				<option <s:if test='%{numPerPage=="50"}'>selected="selected"</s:if> value="50">50</option>
				<option <s:if test='%{numPerPage=="100"}'>selected="selected"</s:if> value="100">100</option>
				<option <s:if test='%{numPerPage=="200"}'>selected="selected"</s:if> value="200">200</option>
			</select>
			<span>条，共${pm.totalCount}条</span>
		</div>
		
		<!--分页组件-->  
		<div class="pagination" targetType="navTab" totalCount="${pm.totalCount}" numPerPage="${pm.numPerPage}" pageNumShown="10" currentPage="${pm.pageNum}"></div>
	</div>
</div>
</form>
